package com.dev.op.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dev.op.entity.Submission;
import com.dev.op.entity.UserGroup;
import com.dev.op.service.UserGroupService;
import com.dev.op.mapper.UserGroupMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【user_group】的数据库操作Service实现
* @createDate 2025-03-29 22:40:33
*/
@Service
public class UserGroupServiceImpl extends ServiceImpl<UserGroupMapper, UserGroup>
    implements UserGroupService{

    @Autowired
    UserGroupMapper userGroupMapper;

    @Override
    public Page<UserGroup> getUserGroup(int page, int size) {
        Page<UserGroup> userGroupPage = new Page<>(page, size);
        // 执行分页查询，返回分页结果
        return userGroupMapper.selectPage(userGroupPage, null);
    }

}




